//
//  collect_shop_Cell.m
//  pmmSS
//
//  Created by Mac book on 2017/9/22.
//  Copyright © 2017年 WTFSSD. All rights reserved.
//

#import "collect_shop_Cell.h"



@implementation collect_shop_Cell

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{

    if (self = [super initWithStyle: style reuseIdentifier:reuseIdentifier]) {
        [self initSubViews];
    }
    return  self;
}

-(void)initSubViews{

    WeakSelf(weakSelf);

    _iconImageView =  [[UIImageView alloc] init];

    _iconImageView.backgroundColor = RGBA(253, 138, 40, 1);

    [_iconImageView setImage:[UIImage imageNamed:@"list_icon_shop"]];

    [self addSubview:_iconImageView];
    [_iconImageView mas_makeConstraints:^(MASConstraintMaker *make) {

        make.centerY.mas_equalTo(weakSelf);
        make.left.mas_equalTo(autoScaleW(10));
        make.width.mas_equalTo(autoScaleW(46));
        make.height.mas_equalTo(autoScaleH(46));
        
    }];

    _iconLabel = [ HMLabel createLabelWithText:@"钛合金专卖" andTextColor:[UIColor blackColor]andBgColor:nil andFont:[UIFont fontWithName:default_fontname size:autoScaleW(14)] andTextAlignment:NSTextAlignmentLeft];

    [self addSubview:_iconLabel];

    [_iconLabel mas_makeConstraints:^(MASConstraintMaker *make) {

        make.centerY.mas_equalTo(weakSelf);
        make.left.mas_equalTo(autoScaleW(75));
        make.right.mas_equalTo(autoScaleW(-30));
        make.height.mas_equalTo(autoScaleH(20));

    }];



    UIImageView *rightImage = [[UIImageView alloc]init];

    [rightImage setImage:[UIImage imageNamed:@"icon_arrow_right_gray"]];
    [self.contentView addSubview:rightImage];

    [rightImage mas_makeConstraints:^(MASConstraintMaker *make) {

        make.centerY.mas_equalTo(weakSelf.contentView);
        make.right.mas_equalTo(weakSelf.contentView).offset(autoScaleW(-15));

        make.height.mas_equalTo(autoScaleW(11));
        
        make.width.mas_equalTo(autoScaleH(6));
        
    }];

}
-(void)layoutSubviews{


}
@end
